package com.atguigu.campusintelligentassistantsystem.repository;

import com.atguigu.campusintelligentassistantsystem.entity.ScholarshipInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
public interface ScholarshipInfoRepository extends JpaRepository<ScholarshipInfo, Long> {
    List<ScholarshipInfo> findByDeadlineAfterOrderByCreatedAtDesc(LocalDateTime deadline);
}